package VLSys;

import java.awt.*;
import javax.swing.*;

public class ManagementModule extends JPanel {
        
    JButton pindutan[] = new JButton[7];
    ImageIcon serAdd = new ImageIcon("images/management_module/service_add_1.png");
    ImageIcon serAdd1 = new ImageIcon("images/management_module/service_add_2.png");
    ImageIcon serEdit = new ImageIcon("images/management_module/service_edit_1.png");
    ImageIcon serEdit1 = new ImageIcon("images/management_module/service_edit_2.png");
    ImageIcon userAdd = new ImageIcon("images/management_module/user_add_1.png");
    ImageIcon userAdd1 = new ImageIcon("images/management_module/user_add_2.png");
    ImageIcon userEdit = new ImageIcon("images/management_module/user_edit_1.png");
    ImageIcon userEdit1 = new ImageIcon("images/management_module/user_edit_2.png");
    ImageIcon vehAdd = new ImageIcon("images/management_module/vehicle_add_1.png");
    ImageIcon vehAdd1 = new ImageIcon("images/management_module/vehicle_add_2.png");
    ImageIcon vehEdit = new ImageIcon("images/management_module/vehicle_edit_1.png");
    ImageIcon vehEdit1 = new ImageIcon("images/management_module/vehicle_edit_2.png");
        
        
public ManagementModule(){
    setVisible(false);
    setLayout(null);
    setBackground(Color.white);

    int i;
    for(i=0;i<=5;i++)
    {
        pindutan[i] = new JButton();
        pindutan[i].setContentAreaFilled(false);
    }

    pindutan[0].setIcon(serAdd);
    pindutan[0].setRolloverIcon(serAdd1);
    pindutan[0].setPressedIcon(serAdd1);

    pindutan[1].setIcon(serEdit);
    pindutan[1].setRolloverIcon(serEdit1);
    pindutan[2].setIcon(userAdd);
    pindutan[2].setRolloverIcon(userAdd1);
    pindutan[3].setIcon(userEdit);
    pindutan[3].setRolloverIcon(userEdit1);
    pindutan[4].setIcon(vehAdd);
    pindutan[4].setRolloverIcon(vehAdd1);
    pindutan[5].setIcon(vehEdit);
    pindutan[5].setRolloverIcon(vehEdit1);

    pindutan[0].setBounds(10,5,100,22);
    pindutan[1].setBounds(115,5,100,22);
    pindutan[2].setBounds(220,5,80,22);
    pindutan[3].setBounds(300,5,95,22);
    pindutan[4].setBounds(400,5,100,22);
    pindutan[5].setBounds(500,5,110,22);


             for(i=0;i<=5;i++)
            {
               add(pindutan[i]);
               pindutan[i].setBorderPainted(false);
            }

                 

    }

    
    
}
